package gui;
import javafx.geometry.Bounds;
import javafx.geometry.BoundingBox;
import javafx.stage.Stage;

/**
 * @author Chris
 */

public class Layouter {
    public var stage: Stage;
    public var stageSize: Bounds;
    public var menuButtonSize: Bounds;
    public var menuButtonSpacing: Float;
    public var menuPosY: Float;
    public var menuPosX: Float;
    public var menuHeight: Float;
    public var appWidth: Float;
    public var appHeight: Float;

    public function setStage(stageP: Stage) {
        this.stage = stageP;
    }


    public function init() {
        stageSize = BoundingBox {
            height: 600;
            width: 1200;
        }
        println("StageSize: {stageSize.width}x{stageSize.height}");

        menuButtonSize = BoundingBox {
            height: 50
            width: 50
        }
        //menuButtonSpacing = 20;
        menuButtonSpacing = (stageSize.width - 6*menuButtonSize.width)/8;
        menuHeight = 80;
        menuPosY = stageSize.height - menuButtonSize.height - 15;
        menuPosX = menuButtonSpacing;

    }

}
